package net.pimpas.web.jsf.components.tree;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class TreeNode implements Serializable {
	
	private static final long serialVersionUID = -8174883636106299622L;

	private Object value;
	
	private String label;
	
	private TreeNode parent;
	
	private Object bean;
	
	private String iconOpened;
	
	private String iconClosed;
	
	private String iconLeaf;
	
	private List<TreeNode> children;
	
	public TreeNode() {
		this.setChildren(new ArrayList<TreeNode>());
	}
	
	public String getLabel() {
		return label;
	}
	public void setLabel(String label) {
		this.label = label;
	}
	public Object getValue() {
		return value;
	}
	public void setValue(Object value) {
		this.value = value;
	}
	public List<TreeNode> getChildren() {
		return children;
	}
	public void setChildren(List<TreeNode> children) {
		this.children = children;
	}
	public TreeNode getParent() {
		return parent;
	}
	public void setParent(TreeNode parent) {
		this.parent = parent;
	}
	public Object getBean() {
		return bean;
	}
	public void setBean(Object bean) {
		this.bean = bean;
	}

	public String getIconClosed() {
		return iconClosed;
	}

	public void setIconClosed(String iconClosed) {
		this.iconClosed = iconClosed;
	}

	public String getIconOpened() {
		return iconOpened;
	}

	public void setIconOpened(String iconOpened) {
		this.iconOpened = iconOpened;
	}

	public String getIconLeaf() {
		return iconLeaf;
	}

	public void setIconLeaf(String iconLeaf) {
		this.iconLeaf = iconLeaf;
	}
}